package com.example.prototypepattern.entity;

/**
 * @author ash
 * @description
 * @create 2022/12/17  16:08:51
 * @className ICloneable
 * @verson 1.0.0
 */
public abstract class ICloneable implements Cloneable  {


    private String id;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public Object clone() {
        Object clone = null;
        try {
            clone = super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }
}
